//
// Created by 333 on 2023/10/17.
//

#include "userclass.h"

userclass::userclass(const std::string &username,const std::string& password, int hallnumber,std::string seatid):
    username(username),
    password(password),
    hallnumber(hallnumber),
    seatid(seatid)
{
    std::ofstream outfile("D:\\QT_projects\\Login\\3.txt", std::ios::app);

    if (!outfile.is_open()) {
        std::cerr << "Failed to open the file for writing." << std::endl;
        return;
    }
    outfile << username <<" " <<  password << " "<<  hallnumber << " "<< seatid<< "\n";
    outfile.close();
    }
